Optimal. Leaf size=100 \[ \frac {3 b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{2 f}-\frac {\cos (e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{f}+\frac {3 a \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {4134, 277, 195, 217, 206} \[ \frac {3 b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{2 f}-\frac {\cos (e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{f}+\frac {3 a \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 195
Rule 206
Rule 217
Rule 277
Rule 4134
Rubi steps
\begin {align*} \int \left (a+b \sec ^2(e+f x)\right )^{3/2} \sin (e+f x) \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\left (a+b x^2\right )^{3/2}}{x^2} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac {\cos (e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{f}+\frac {(3 b) \operatorname {Subst}\left (\int \sqrt {a+b x^2} \, dx,x,\sec (e+f x)\right )}{f}\\ &=\frac {3 b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{2 f}-\frac {\cos (e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{f}+\frac {(3 a b) \operatorname {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,\sec (e+f x)\right )}{2 f}\\ &=\frac {3 b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{2 f}-\frac {\cos (e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{f}+\frac {(3 a b) \operatorname {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{2 f}\\ &=\frac {3 a \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}}\right )}{2 f}+\frac {3 b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)}}{2 f}-\frac {\cos (e+f x) \left (a+b \sec ^2(e+f x)\right )^{3/2}}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.60, size = 73, normalized size = 0.73 \[ -\frac {a \cos (e+f x) (a \cos (2 (e+f x))+a+2 b)^2 \sqrt {a+b \sec ^2(e+f x)} \, _2F_1\left (2,\frac {5}{2};\frac {7}{2};\frac {a \cos ^2(e+f x)}{b}+1\right )}{20 b^2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.87, size = 231, normalized size = 2.31 \[ \left [\frac {3 \, a \sqrt {b} \cos \left (f x + e\right ) \log \left (\frac {a \cos \left (f x + e\right )^{2} + 2 \, \sqrt {b} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + 2 \, b}{\cos \left (f x + e\right )^{2}}\right ) - 2 \, {\left (2 \, a \cos \left (f x + e\right )^{2} - b\right )} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{4 \, f \cos \left (f x + e\right )}, -\frac {3 \, a \sqrt {-b} \arctan \left (\frac {\sqrt {-b} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{b}\right ) \cos \left (f x + e\right ) + {\left (2 \, a \cos \left (f x + e\right )^{2} - b\right )} \sqrt {\frac {a \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{2 \, f \cos \left (f x + e\right )}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.36, size = 121, normalized size = 1.21 \[ -\frac {\left (a +b \left (\sec ^{2}\left (f x +e \right )\right )\right )^{\frac {5}{2}}}{f a \sec \left (f x +e \right )}+\frac {b \sec \left (f x +e \right ) \left (a +b \left (\sec ^{2}\left (f x +e \right )\right )\right )^{\frac {3}{2}}}{f a}+\frac {3 b \sec \left (f x +e \right ) \sqrt {a +b \left (\sec ^{2}\left (f x +e \right )\right )}}{2 f}+\frac {3 a \sqrt {b}\, \ln \left (\sec \left (f x +e \right ) \sqrt {b}+\sqrt {a +b \left (\sec ^{2}\left (f x +e \right )\right )}\right )}{2 f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 142, normalized size = 1.42 \[ -\frac {4 \, \sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} a \cos \left (f x + e\right ) - \frac {2 \, \sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} a b \cos \left (f x + e\right )}{{\left (a + \frac {b}{\cos \left (f x + e\right )^{2}}\right )} \cos \left (f x + e\right )^{2} - b} + 3 \, a \sqrt {b} \log \left (\frac {\sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) - \sqrt {b}}{\sqrt {a + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + \sqrt {b}}\right )}{4 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.11, size = 61, normalized size = 0.61 \[ -\frac {\cos \left (e+f\,x\right )\,{\left (a+\frac {b}{{\cos \left (e+f\,x\right )}^2}\right )}^{3/2}\,{{}}_2{\mathrm {F}}_1\left (-\frac {3}{2},-\frac {1}{2};\ \frac {1}{2};\ -\frac {b}{a\,{\cos \left (e+f\,x\right )}^2}\right )}{f\,{\left (\frac {b}{a\,{\cos \left (e+f\,x\right )}^2}+1\right )}^{3/2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________